package com.ITArmy.service;

import com.ITArmy.beans.Type;
import com.ITArmy.common.ServerResponse;
import org.springframework.ui.Model;

public interface TypeService {
    //遍历类型
    ServerResponse typeList();
    //添加类型
    ServerResponse addType(Type type);
    //删除类型
    ServerResponse deleteType(Long id);
    //批量删除
    ServerResponse deleteManyByIds(String[] ids);
    //修改类型
    ServerResponse updateType(Type type);
    //查找类型
    ServerResponse findTypeByNameLike(String name);
    //类型查重
    ServerResponse findTypeByName(String name);
}
